package tt.global;

import java.io.File;

import android.net.Uri;
import android.os.Environment;

public final class GlobalConstants {
	public static final String SDCARD = Environment
			.getExternalStorageDirectory().toString();
	public static final String LOCALPATH = SDCARD + File.separator + "book";
	/*
	 * DataBase info
	 */
	public static final int DATABASE_VERSION = 1;
	public static final String DATABASE_NAME = "treader.db";
	public static final String TABLENAME_IMPORTED = "importedbooks";
	public static final String TABLENAME_FAVORITES = "favoritesbooks";
	public static final String TABLENAME_BOOKMARKS = "bookmarks";
	/*
	 * download info
	 */
	public static final String URL_LIST = "http://192.168.1.11:8080/books/list.xml";
	public static final String URL_BOOKROOT = "http://192.168.1.11:8080/books/";

	public static final String ENC = "GB2312";
	
	/*
	 * xml info
	 */
	
	public static final String TAG_BOOK="book";
	public static final String TAG_BOOKNAME="bookname";
	public static final String TAG_BOOKAUTHOR="bookauthor";
	
	/*
	 * provider constants
	 */
	public static final String AUTORITY = "tt.provider.TreaderProviders";
	public static final Uri IMPORTED_URI = Uri.parse("content://" + AUTORITY
			+ "/" + TABLENAME_IMPORTED);
	// public static final Uri
	// FAVORITES_URI=Uri.parse("content://"+AUTORITY+"/"+TABLENAME_FAVORITES);
	// public static final Uri
	// BOOKMARKS_URI=Uri.parse("content://"+AUTORITY+"/"+TABLENAME_BOOKMARKS);

	// importedbooks columns
	public static final String IMPORTED_ID = "_id";
	public static final String IMPORTED_BOOK_NAME = "book_name";
	public static final String IMPORTED_BOOK_AUTHOR = "book_author";
	public static final String IMPORTED_BOOK_PATH = "book_path";
	public static final String IMPORTED_RECENTLY = "book_recently";
}
